﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Com;
using DAL.MySQL;
using Models;

namespace Core
{
    public class loginCore
    {
        adminCore admin= new adminCore();
        public adminEntity LoginIn(loginModel model)
        {
            if (model.code == HttpContext.Current.Session["code"].ToString())
            {

            }
            return admin.GetAdminByNP(model.username, DESEncrypt.Encrypt(model.password));
        }
    }
}
